import request from '@/utils/request'

// 查询假期申请记录详情列表
export function listDetails(query) {
  return request({
    url: '/business/holidayApplicationRecord/holidayApplicationRecord',
    method: 'get',
    params: query
  })
}

// 查询假期申请记录列表
export function jqVacationAllList(query) {
  return request({
    url: '/business/jqVacation/allList',
    method: 'get',
    params: query
  })
}

// 查询假期申请记录详情详细
export function getDetails(id) {
  return request({
    url: '/business/attendanceRecord/' + id,
    method: 'get'
  })
}

// 新增考勤详情
export function addDetails(data) {
  return request({
    url: '/business/attendanceRecord',
    method: 'post',
    data: data
  })
}

// 修改考勤详情
export function updateDetails(data) {
  return request({
    url: '/business/attendanceRecord',
    method: 'put',
    data: data
  })
}

// 删除考勤详情
export function delDetails(id) {
  return request({
    url: '/business/attendanceRecord/' + id,
    method: 'delete'
  })
}
